//导入requset工具
import request from '@/utils/request'

// 删除部门
export const deleteDepartmentService = (departmentId) => {
  return request.delete('/admin/department', { params: { id: departmentId } })
}
//查询部门
export const departmentService = () => {
  return request.get('/admin/department/all')
}
//分頁查询部门
export const departmentPageService = (params) => {
  return request.get('/admin/department/page', { params: params })
}
//添加文章
export const addDepartmentService = (departmentData) => {
  return request.post('/admin/department', departmentData)
}
//更新部门
export const updateDepartmentService = (departmentData) => {
  return request.put('/admin/department', departmentData)
}

